<?php /* Smarty version Smarty-3.1.12, created on 2013-03-12 19:33:01
         compiled from "/www/htdocs/w00fc40b/dota2league/templates/match/modals/submitResult.tpl" */ ?>
<?php /*%%SmartyHeaderCode:211670953751080a28551a44-83161201%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3dfb419b6e8cb91093d3b05804a1ba3516b92a1f' => 
    array (
      0 => '/www/htdocs/w00fc40b/dota2league/templates/match/modals/submitResult.tpl',
      1 => 1363113139,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '211670953751080a28551a44-83161201',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_51080a28558f30_21748902',
  'variables' => 
  array (
    '_SERVER' => 0,
    'data' => 0,
    'v' => 0,
    'checked' => 0,
    'disabled' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51080a28558f30_21748902')) {function content_51080a28558f30_21748902($_smarty_tpl) {?>
<!-- Modal Submit Result -->
<div id="myModalSubmitResult" class="modal hide fade" tabindex="-1"
	role="dialog" aria-labelledby="myModalSubmitResult" aria-hidden="true">
	<form id="submitResultForm" name="submitResultForm"
		novalidate="novalidate" class="form-horizontal"
		action="<?php echo $_smarty_tpl->tpl_vars['_SERVER']->value['PHP_SELF'];?>
" method="POST">

		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal"
				aria-hidden="true">×</button>
			<h3 id="myModalLabel">Submit your Match result</h3>
		</div>


		<div class="modal-body">
			<div class="alert alert-error hide" data-dismiss="alert"
				id="myModalError">
				<a class="close" data-dismiss="alert" href="#">&times;</a> Please
				select, whether your team won or lost!
			</div>
			<div class="alert alert-warn">
				<h4>Warning:</h4>
				you can't change your submission afterwards, please be sure you
				submit the right result!
			</div>

			<div class="control-group">
				<label class="control-label" for="checkWinLose">Your Team:</label>
				<div class="controls" id="checkWinLoseCheckboxDiv">
					<div class="btn-group" data-toggle="buttons-radio"
						id="checkWinLose">
						<button type="button" class="btn btn-success" value="won"
							onclick="setWinLoseValue(this);">Won</button>
						<button type="button" class="btn btn-danger" value="lost"
							onclick="setWinLoseValue(this);">Lost</button>
					</div>

					<input type="text" value="" id="checkWinLoseCheckboxHidden"
						name="checkWinLoseCheckboxHidden" class="hidden">
					<div id="checkWinLoseErrorDiv"></div>
				</div>
			</div>
<!-- 			<div class="control-group"> -->
<!-- 				<label class="control-label" for="inputDota2MatchID">Dota2-MatchID:<a -->
<!-- 					href="help.php#WhatIsDota2MatchID" target="_blank"><i -->
<!-- 						class="icon-question-sign t" title="What is the Dota2-MatchID?"></i></a></label> -->
<!-- 				<div class="controls"> -->
<!-- 					<input type="text" placeholder="7-8 diggits-long Dota2-MatchID..." -->
<!-- 						id="inputDota2MatchID" name="inputDota2MatchID"> -->
<!-- 				</div> -->
<!-- 			</div> -->
			<div class="control-group hide" id="screenshotUploadForm">
				<label class="control-label" for="screenshotUpload">Screenshot:<a
					href="help.php#ScreenshotUpload" target="_blank"><i
						class="icon-question-sign t"
						title="How should the Screenshot look like?"></i></a></label>
				<div class="controls">
					<input id="screenshotUpload" type="file" name="files"
						data-url="inc/jquery_fileUpload/server/php/" accept="image/*">
					<div id="progress" class="progress hide">
						<div class="bar" style="width: 0%;"></div>
					</div>
					<div id="fileUploaded"></div>
				</div>
			</div>
			<div id="leaverPannelToggler">
				<button type="button" class="btn btn-link" data-toggle="collapse"
					data-target="#leaverPannel">Players left the Game</button>
			</div>
			<div id="leaverPannel" class="collapse">
					<div class="pull-left" style="width:50%">
						<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['data']->value['data']['team1']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?> 
							<?php if ($_SESSION['user']['steamID']==$_smarty_tpl->tpl_vars['v']->value['SteamID']){?>
								<?php $_smarty_tpl->tpl_vars["disabled"] = new Smarty_variable("disabled", null, 0);?>
							<?php }else{ ?>
								<?php $_smarty_tpl->tpl_vars["disabled"] = new Smarty_variable('', null, 0);?>
							<?php }?>
							<label class="checkbox" id="label_<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
"> 
								<input type="checkbox"
								value="<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
"
								id="player<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
"
								name="player<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
" <?php echo $_smarty_tpl->tpl_vars['checked']->value;?>
 <?php echo $_smarty_tpl->tpl_vars['disabled']->value;?>
>
								<img alt="Avatar" src="<?php echo $_smarty_tpl->tpl_vars['v']->value['Avatar'];?>
" width="25" height="25">
								<?php echo $_smarty_tpl->tpl_vars['v']->value['Name'];?>

							</label> 
						<?php } ?>
					</div>
					<div class="pull-left" style="width:50%">
						<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['data']->value['data']['team2']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?> 
						<?php if ($_SESSION['user']['steamID']==$_smarty_tpl->tpl_vars['v']->value['SteamID']){?>
								<?php $_smarty_tpl->tpl_vars["disabled"] = new Smarty_variable("disabled", null, 0);?>
							<?php }else{ ?>
								<?php $_smarty_tpl->tpl_vars["disabled"] = new Smarty_variable('', null, 0);?>
							<?php }?>
							<label class="checkbox" id="label_<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
"> 
								<input type="checkbox"
								value="<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
"
								id="player<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
"
								name="player<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
" <?php echo $_smarty_tpl->tpl_vars['checked']->value;?>
>
								<img alt="Avatar" src="<?php echo $_smarty_tpl->tpl_vars['v']->value['Avatar'];?>
" width="25" height="25">
								<?php echo $_smarty_tpl->tpl_vars['v']->value['Name'];?>

							</label> 
						<?php } ?>
				</div>

			</div>
		</div>
		<div class="modal-footer">
			<button id="myModalCancelButton" class="btn" data-dismiss="modal"
				aria-hidden="true">Cancel</button>
			<button type="button" id="myModalSubmitButton"
				class="btn btn-success" onclick="submitResult()">Submit
				result!</button>
		</div>
	</form>
</div><?php }} ?>